import request from '@/utils/request'

export function getUsers(data) {
  return request({
    url: '/admin/users',
    method: 'get',
    params: data
  })
}
export function addUser(data) {
  return request({
    url: '/admin/user',
    method: 'post',
    data
  })
}
export function updateUser(data) {
  return request({
    url: '/admin/user',
    method: 'put',
    data: data
  })
}
export function deleteUser(data) {
  return request({
    url: '/admin/user',
    method: 'delete',
    data: data
  })
}
export function getUserInfo(data) {
  return request({
    url: '/admin/user',
    method: 'get',
    data: data
  })
}
